package com.bwie.controller;


import com.bwie.common.result.Result;
import com.bwie.pojo.UserTripOrder;
import com.bwie.service.UserTripOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liuxin
 * @since 2025-03-23
 */
@RestController
@RequestMapping("/t-user-trip-order")
public class UserTripOrderController {
    @Autowired
    private UserTripOrderService userTripOrderService;

    /**
     * 获取所有订单
     * @return
     */
    @GetMapping("/getFilteredUserTripOrders")
    public Result<List<UserTripOrder>> getFilteredUserTripOrders(){
        List<UserTripOrder> list=userTripOrderService.getFilteredUserTripOrders();
        return Result.success(list);
    }
}
